Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move tuple Cartesian syntax implicit parameter #1811

Merged

Conversation

DavidGregory084
Copy link
Member

Fixes #1805 by moving the implicit parameter for tuple Cartesian methods from the ops class to the methods. As discussed in the issue this provides better error messages:

[error] C:\Users\gregoryd\Repos\cats\tests\src\test\scala\cats\tests\SyntaxTests.scala:204: could not find implicit value for parameter cartesian: cats.Cartesian[F]
[error]     tfabc mapN f
[error]           ^

instead of:

[error] C:\Users\gregoryd\Repos\cats\tests\src\test\scala\cats\tests\SyntaxTests.scala:204: value mapN is not a member of (F[A], F[B], F[C])
[error]     tfabc mapN f
[error]           ^

@kailuowang kailuowang added this to the 1.0.0-RC1 milestone Aug 10, 2017
@kailuowang kailuowang merged commit 3238de6 into typelevel:master Aug 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants